/*
 * @Author: xiezhiquan3878
 * @LastEditors: xiezhiquan3878 xiezhiquan3878
 * @Date: 2024-06-28 18:20:12
 * @LastEditTime: 2024-06-28 18:40:12
 * @Description: 预约管理
 */
import request from '@/utils/request'

// 保存预约配置
export function saveSubscribe(data) {
  return request({
    url: '/users-api/scheduled/config',
    method: 'post',
    data
  })
}
// 获取预约配置
export function getSubscribe(params) {
  return request({
    url: '/users-api/scheduled/config',
    method: 'get',
    params
  })
}
// 保存预约模式配置
export function saveSchema(data) {
  return request({
    url: '/users-api/scheduled/schema/config',
    method: 'post',
    data
  })
}
// 获取预约模式配置
export function getSchema(params) {
  return request({
    url: '/users-api/scheduled/schema/config',
    method: 'get',
    params
  })
}
// 预约统计
export function getCollect(params) {
  return request({
    url: '/users-api/scheduled/collect',
    method: 'get',
    params
  })
}

// 预约记录折线图


export function getChartReport(params) {
  return request({
    url: '/users-api/scheduled/report',
    method: 'get',
    params
  })
}